package com.ruoyi.vocational_college.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.vocational_college.mapper.TbVocationalCollegeMapper;
import com.ruoyi.vocational_college.domain.TbVocationalCollege;
import com.ruoyi.vocational_college.service.ITbVocationalCollegeService;

/**
 * 专科院校信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbVocationalCollegeServiceImpl implements ITbVocationalCollegeService 
{
    @Autowired
    private TbVocationalCollegeMapper tbVocationalCollegeMapper;

    /**
     * 查询专科院校信息
     * 
     * @param id 专科院校信息主键
     * @return 专科院校信息
     */
    @Override
    public TbVocationalCollege selectTbVocationalCollegeById(Long id)
    {
        return tbVocationalCollegeMapper.selectTbVocationalCollegeById(id);
    }

    /**
     * 查询专科院校信息列表
     * 
     * @param tbVocationalCollege 专科院校信息
     * @return 专科院校信息
     */
    @Override
    public List<TbVocationalCollege> selectTbVocationalCollegeList(TbVocationalCollege tbVocationalCollege)
    {
        return tbVocationalCollegeMapper.selectTbVocationalCollegeList(tbVocationalCollege);
    }

    /**
     * 新增专科院校信息
     * 
     * @param tbVocationalCollege 专科院校信息
     * @return 结果
     */
    @Override
    public int insertTbVocationalCollege(TbVocationalCollege tbVocationalCollege)
    {
        return tbVocationalCollegeMapper.insertTbVocationalCollege(tbVocationalCollege);
    }

    /**
     * 修改专科院校信息
     * 
     * @param tbVocationalCollege 专科院校信息
     * @return 结果
     */
    @Override
    public int updateTbVocationalCollege(TbVocationalCollege tbVocationalCollege)
    {
        return tbVocationalCollegeMapper.updateTbVocationalCollege(tbVocationalCollege);
    }

    /**
     * 批量删除专科院校信息
     * 
     * @param ids 需要删除的专科院校信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVocationalCollegeByIds(Long[] ids)
    {
        return tbVocationalCollegeMapper.deleteTbVocationalCollegeByIds(ids);
    }

    /**
     * 删除专科院校信息信息
     * 
     * @param id 专科院校信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVocationalCollegeById(Long id)
    {
        return tbVocationalCollegeMapper.deleteTbVocationalCollegeById(id);
    }
}
